Import('RTT_ROOT')
Import('rtconfig')
from building import *

src = Split('''
ecl/airdata/WindEstimator.cpp
ecl/geo/geo.cpp
ecl/geo_lookup/geo_mag_declination.cpp
ecl/EKF/airspeed_fusion.cpp
ecl/EKF/control.cpp
ecl/EKF/covariance.cpp
ecl/EKF/drag_fusion.cpp
ecl/EKF/ekf.cpp
ecl/EKF/ekf_helper.cpp
ecl/EKF/EKFGSF_yaw.cpp
ecl/EKF/estimator_interface.cpp
ecl/EKF/gps_checks.cpp
ecl/EKF/gps_yaw_fusion.cpp
ecl/EKF/imu_down_sampler.cpp
ecl/EKF/mag_control.cpp
ecl/EKF/mag_fusion.cpp
ecl/EKF/optflow_fusion.cpp
ecl/EKF/sensor_range_finder.cpp
ecl/EKF/sideslip_fusion.cpp
ecl/EKF/terrain_estimator.cpp
ecl/EKF/utils.cpp
ecl/EKF/vel_pos_fusion.cpp
''')

cwd     = GetCurrentDir()
CPPPATH = [cwd + '/ecl', cwd + '../matrix/matrix']
CPPDEFINES = ['ECL_STANDALONE']

group = DefineGroup('ekf', src, depend = ['GP_USING_EKF'], CPPPATH = CPPPATH, 
            CPPDEFINES = CPPDEFINES)

Return('group')
